package com.jiantong.work.service;
import com.jiantong.work.model.ImmunizationDetection;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by maowenjie on 2017/3/17.
 */
public interface ImmunizationDetectionReadService {

    /**
     * 根据id防疫中心-免疫检测
     * @param id 主键id
     * @return ImmunizationDetection 对象
     */
    Response<ImmunizationDetection> findById(Long id);
    /**
     * @param id 主 键
     * @return 状态
     */
    Response<Map<String, Object>> findStatusById(Long id);
    /**
     * 分页查询 防疫中心-免疫检测
     * @param pageNo 页码
     * @param pageSize 条数
     * @return Paging<ImmunizationDetection>
     */


    Response<Paging<ImmunizationDetection>> pagingImmunizationDetection(Integer pageNo, Integer pageSize,Integer toStatus,Long breedFactoryId);

    /**
     * 根据从日期到日期和养殖场名称查看防疫中心5项纪录的列表
     */
    Response<Paging<ImmunizationDetection>> pagingImmunizationDetectionGqv(Integer pageNo, Integer pageSize, Long breedFactoryId,Integer breedType, Date fromDate, Date toDate);
    Response<Paging<ImmunizationDetection>> pagingImmunizationDetectionGqv(Integer pageNo, Integer pageSize,Map map);

    Response<Integer> countImmunizationDetectionForWeb(Map<String, Object> map);

    Response<List<Map<String,Object>>> findImmunizationDetectionInfoForWeb(Map<String, Object> map);
}
